<?php
require_once 'lib/controllerWithoutGetOrPost.php';
require_once 'view/standard-top.php';
$userId = 0;
if (!empty($_GET['userId'])) {
    $userId = $_GET['userId'];
}
if (empty($userId)) {
?>
<style type="text/css">
#centerbar h2 { line-height: normal; margin: 1em 0 0.5em; padding: 0; }
#centerbar h3 { line-height: normal; margin: 1em 0 0.5em; padding: 0; }
#centerbar p { line-height: normal; margin: 0.5em 0; }
#centerbar ol { margin: 0; list-style-position: inside; }
#centerbar li { list-style: inherit; list-style-type: decimal; margin: 0.5em 0; padding: 0; }
#centerbar form { background: #e4dfcc; border: 1px solid #cdc8b1; padding: 0.5em; }
#centerbar form p { text-align: right; }
#centerbar form p label { float: left; }
#setPassword { width: 26em; }
</style>
<div id="centerbar">
    <h2>Welcome</h2>
    <h3>Email Alerts</h3>
    <p>Manage my <a href="alerts.php?userId=2">Email alerts</a></p>
    <h3>Contact Us</h3>
    <p><a href="http://beta.amemorytree.co.nz/membercontact.php?topic=submitfeedback">Submit feedback</a></p>
    <h3>Options</h3>
    <p><a href="accountDetails.php">Account details</a></p>
</div>
<?php
} else {
?>
<style type="text/css">
#centerbar h2 { line-height: normal; margin: 1em 0 0.5em; padding: 0; }
#centerbar h3 { line-height: normal; margin: 1em 0.5em; padding: 0; }
#centerbar p { line-height: normal; margin: 0.5em 0; }
#centerbar ol { margin: 0; list-style-position: inside; }
#centerbar li { list-style: inherit; list-style-type: decimal; margin: 0.5em 0; padding: 0; }
#centerbar form { background: #e4dfcc; border: 1px solid #cdc8b1; padding: 0.5em; }
#centerbar form p { text-align: right; }
#centerbar form p label { float: left; }
#login { width: 26em; }
</style>
<div id="centerbar">
    <h2>Welcome</h2>
    <p>Manage my <a href="alerts.php">Email alerts</a></p>
    <h2>Contact Us</h2>
    <p><a href="feedback.php">Submit feedback</a></p>
    <h2>Options</h2>
    <p><a href="resetPassword.php">Reset password</a></p>
</div>
<?php
}
require_once 'view/standard-bottom.php';
?>
